#ifndef BITMAP_H
#define BITMAP_H


#include "STDTypes.h"
#include "Exception.h"
#include "Screen.h"
#include "Pal.h"
#include <DDraw.h>

#include <fstream>

#using namespace std;

class Bitmap {

	friend class Screen;

public:
	LPDIRECTDRAWSURFACE7 surface;
	WORD width;
	WORD height;
	DWORD area;
	BYTE* data;

public:
	void Bitmap::loadPCX(char *path);
	void Bitmap::createSurface(DWORD width, DWORD height);
	void applyDataChanges();
	void Bitmap::applyToPal(const Pal& given, const Pal& toAchieve);

	Bitmap();
	~Bitmap();

};

#endif